package com.sc.VenusQueryBeta.adapter.account.cunka;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sc.VenusQueryBeta.R;
import com.sc.VenusQueryBeta.adapter.BaseCompatAdapter;
import com.sc.VenusQueryBeta.model.bean.account.AccountList;

import java.util.List;

/**
 * Created by Administrator on 2018/10/16.
 */

public class CunKaAdapter extends BaseCompatAdapter<AccountList.Clients,BaseViewHolder> {
    public CunKaAdapter(int layoutResId, @Nullable List<AccountList.Clients> data) {
        super(layoutResId, data);
    }

    public CunKaAdapter(int item_zhuanma) {
        super(item_zhuanma);
    }


    @Override
    protected void convert(BaseViewHolder helper, AccountList.Clients item) {
        helper.setText(R.id.tv_username,item.getClientnamecn());
        helper.setText(R.id.tv_account_name,item.getClientid());
        helper.setText(R.id.tv_momey,item.getCommonValue()+"萬");
    }
}
